//
//  XWHeader.m
//  PanCollectionView
//
//  Created by lidi on 2018/1/29.
//  Copyright © 2018年 wazrx. All rights reserved.
//

#import "XWHeader.h"

@interface XWHeader ()
@property (nonatomic,weak) IBOutlet UILabel *labelTitle;
@property (nonatomic,weak) IBOutlet UILabel *labelSubTitle;
@end

@implementation XWHeader

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setType:(NSInteger)type {
    if (type == 0) {
        self.labelTitle.text = @"已订阅栏目";
        self.labelSubTitle.text = @"长按可拖拽排序";
    } else {
        self.labelTitle.text = @"可订阅栏目";
        self.labelSubTitle.text = @"";
    }
}

@end
